package org.android.kumoh_ing;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

public class CalendarEventItemView extends LinearLayout{


	/**
	 * TextView 01
	 */
	private TextView mText01;

	/**
	 * TextView 02
	 */
	private TextView mText02;

	/**
	 * TextView 03
	 */
	private TextView mText03;
	
	
	private String ID;
	
	/*
	 * @param context
	 */
	
	
	
	public CalendarEventItemView(Context context) {
		super(context);

		// Layout Inflation
		LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		inflater.inflate(R.layout.calendarlistitem, this, true);

		// Set Text 01
		mText01 = (TextView) findViewById(R.id.startdate);

		// Set Text 02
		mText02 = (TextView) findViewById(R.id.enddate);

		// Set Text 03
		mText03 = (TextView) findViewById(R.id.message);

		
	}

	/**
	 * set Text
	 *
	 * @param index
	 * @param data
	 */
	public void setText(int index, String data) {
		if (index == 0) {
			mText01.setText(data);
		} else if (index == 1) {
			mText02.setText(data);
		} else if (index == 2) {
			mText03.setText(data);
		} else if( index == 3){
			ID = data;
		} else
			throw new IllegalArgumentException();
		}
	}

	/**
	 * set Icon
	 *
	 * @param icon
	 */

//

